
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title>
    <?php
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );

	?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    	if ( is_singular() && get_option( 'thread_comments' ) )
        {
            wp_enqueue_script( 'comment-reply' );
        }		
    	wp_head();
    ?>

</head>

<body>
	<!-- Container -->
	<div id="container">
		<!-- Header -->
		<header class="clearfix">
			<!-- Logo -->
			<div id="logo">
				<a href="<?php bloginfo('url') ?>"><img alt="" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"/></a>
			</div>
			<!-- End Logo -->
			<!-- Search Form -->
            <?php get_search_form(); ?>
		    <!-- End Search Form -->

		    <!-- Ads Top -->
			<div id="ads-top">
				<a href="http://themeforest.net/user/nextWPthemes/portfolio?ref=nextWPThemes"><img alt="" src="<?php bloginfo('stylesheet_directory'); ?>/upload/ads-top.jpg"></a>
			</div>
			<!-- End Ads Top -->

		    <!-- Navigation -->
            
		    <nav class="navigation clearfix">
                <?php
                $main_menu_cgf = array(
                    'container' => '',
                    'theme_location' => 'primary',
                    'menu_class' => 'sf-menu'
                );
                wp_nav_menu( $main_menu_cgf );
                ?>
		    </nav>
		    <!-- Navigation -->

		    <!-- Sub Menu -->
		    <div id="sub-menu" class="clearfix">
                <?php
                $second_menu_cgf = array(
                    'theme_location' => 'second'
                );
                wp_nav_menu( $second_menu_cgf );
                ?>
		    </div>
		    <!-- Sub Menu -->
		</header>
		<!-- End Header -->